package org.example;
import org.example.domain.Teacher;
import org.example.vo.FileUploadVO;
import org.example.vo.PageVO;

import java.util.List;
import java.util.Map;

public interface TeacherService {
    Teacher selectOneTeacherByMnemonic_code(String name);
    Teacher selectOneTeacherById(Long id);
    boolean judgePassword(String originPass,String newPass);
    Boolean surePassword(String loginPwd,String inputPwd);

    /**
     *
     * @param map 包含mnemonic_code助记码和newPwd
     */
    void commitUpdatePwd(Map<String,String> map);
    PageVO showTeacherList(String filterName, Integer page, Integer count);
    void saveOneTeacher(String tname);
    String editOneTeacher(Teacher teacher);
    void deleteOne(Long id);
    void deleteAll(String ids);
    List<Teacher> selectAll();
    FileUploadVO saveListTeacher(List<Teacher> teacherList);
}
